const https = require('https')   //内置模块 需要看请求的是啥
https.get('https://portal-portm.meituan.com/horn/v1/modules/lx-web-config/prod?_lxsdk_rnd=1822a61a8b70', (res) => {
    // console.log(res);
    let str = ''
    res.on('data', (chunk) => {
        str += chunk
    })
    res.on('end', () => {
        console.log(str);
    })
})

const http = require('http') 
http.createServer((req, res) => {
    res.write(req.url)
    res.end()
}).listen(8090,'localhost',()=>{
    console.log('234567');
})